Skip to content

Conversation

@guyathomas
Copy link

@guyathomas guyathomas commented Mar 19, 2021

Problem

The current plugin only supports a flat list of files, i.e.

App.tsx
index.ts
styles.css
Clock // Will break on build here
- Clock.tsx

Solution

This PR introduces getAllFiles to traverse the filesystem recursively, and build up the relative path filename for the nested files.
Note: Also adds in ignoredFiles as part of the options, since in my testing it'd often include things like yarn.lock which would actually mean the generated URL was too long to be supported by codesandbox.

@guyathomas guyathomas force-pushed the allow-folders-old-algo branch 2 times, most recently from 8393b7b to 25c68e5 Compare March 19, 2021 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant